﻿-- =============================================
-- Script Template
-- =============================================
USE [DB_Ex]
GO

/****** Object:  StoredProcedure [dbo].[sp_Test]    Script Date: 12/05/2011 10:46:36 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

-- =============================================
-- Author:		<Author,,Name>
-- Create date: <Create Date,,>
-- Description:	<Description,,>
-- =============================================
CREATE PROCEDURE [dbo].[sp_Test]
(
@parSrvName nvarchar(255)
)
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
SET NOCOUNT ON;

-- EXEC [dbo].[sp_MySQKMainSrv_GetTblShops_sale]
Declare @str varchar(4000);
Set @str = 'Execute(''SELECT * FROM shops_sale WHERE (accept=1) ORDER BY name'') at '
Set @str = @str +  @parSrvName; 
-- 'PORTAL_KORABLIK_LOCAL';
Exec(@str);

END

GO


